package models

import "gorm.io/gorm"

type Order struct {
	gorm.Model
	UId       int    `gorm:"type:int(11)"`
	Status    string `gorm:"type:enum('已就诊','已取消','已挂号')"`
	Reason    string `gorm:"type:varchar(100)"`
	HId       int    `gorm:"type:int(11)"`
	Did       int    `gorm:"type:int(11)"`
	OrderType string `gorm:"type:enum('专家号','普通号')"`
}
type OrderData struct {
	Order
	Name         string  `gorm:"type:varchar(30)"`
	CardType     string  `gorm:"type:enum('身份证','居住证','护照','驾驶证')"`
	CardNumber   string  `gorm:"type:varchar(30)"`
	UserName     string  `gorm:"type:varchar(30)"`
	Tel          string  `gorm:"type:varchar(30)"`
	Address      string  `gorm:"type:varchar(100)"`
	Image        string  `gorm:"type:text"`
	Relationship string  `gorm:"type:enum('本人','父子','母子','祖孙','太祖孙','玄祖孙','兄弟姊妹')"`
	HosAddress   string  `gorm:"type:varchar(100)"`
	HosName      string  `gorm:"type:varchar(100)"`
	DocName      string  `gorm:"type:varchar(30)"`
	Price        float64 `gorm:"type:float(10,2)"`
	DepName      string  `gorm:"type:varchar(30)"`
	ProTitle     string  `gorm:"type:enum('实习医生','主治医师','主任','院长')"`
}
